package cc.bukkitPlugin.banitem.command;

import java.util.ArrayList;

import org.bukkit.command.CommandSender;

import cc.bukkitPlugin.banitem.BanItemEnume.OperateType;
import cc.bukkitPlugin.banitem.CFG;

public class CommandCheck extends ACommandListOp{

    public CommandCheck(CommandExc pExector){
        super(pExector,OperateType.CHECK);
    }

    @Override
    public ArrayList<String> getHelp(CommandSender pSender,String pLabel){
        ArrayList<String> helps=new ArrayList<>();
        if(pSender.hasPermission(this.mPluginName+".item.check")){
            helps.add(CFG.cmd_color+this.mMainCmdLabel+" check [参数:值]...");
            helps.add(CFG.help_color+"可选的参数: "+this.getAllowParam());
            helps.add(CFG.help_color+"检查命令物品配置项是否存在于指定物品列表");
        }
        return helps;
    }

}
